import xmbzPermission from "./xmbzPermission";
//批量注册指令(现在就一个permission)
const directives = {
  'xmbz-permission': xmbzPermission
};
//注册的一般写法，循环遍历directives，通过vue.directive注册
export default {
  install(Vue) {
    Object.keys(directives).forEach(key => {
      Vue.directive(key, directives[key]);
    });
  }
};
